AddCSLuaFile("autorun/client/motd.lua")

function OpenOnSpawn(ply)
    ply:ConCommand("OpenMotd")
end

hook.Add("PlayerInitialSpawn","MOTDSPawnHook",OpenOnSpawn)

function OpenChatCommand( ply, text, Team, death)
        local Explode = string.Explode(" ",text)
        if text == "!motd" then
        ply:ConCommand("OpenMotd")
        elseif text == "!mode" then
        ply:ConCommand("OpenModeMenu")
    end
end
hook.Add( "PlayerSay", "Start", OpenChatCommand )
